package org.smartjava.util;

public class PrintUtil {

    public static void print(Object o) {
        String out = null == o ? "null" : o instanceof String ? (String) o : o.toString();
        System.out.println(out);
    }

    public static void print(Object o, Object... args) {
        StringBuilder out = new StringBuilder(null == o ? "null" : o instanceof String ? (String) o : o.toString());
        for (Object arg : args) {
            if (null != arg) {
                out.append(arg);
            }
        }
        System.out.println(out);
    }
}
